﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using Ppt = Microsoft.Office.Interop.PowerPoint;
using DataFactory;

namespace ObjectModel.PowerPoint.New
{
    public class PresentationConstantsManager
    {
        readonly PresentationLinkedDictionary<PresentationConstants> mDict = new PresentationLinkedDictionary<PresentationConstants>();

        public PresentationConstants this[Ppt.Presentation pres]
        {
            get
            {
                if (!mDict.ContainsKey(pres))
                    mDict.Add(pres, new PresentationConstants(pres));

                return mDict[pres];
            }
        }
    }
}
